import toast from './toast/index.js'
import deepClone from './deepClone/index.js'
import throttle from './throttle/index.js'
import previewFile from './previewFile/index.js'
import judgmentType from './judgmentType/index.js'
import anchorPoint from './anchorPoint/index.js'
import getQueryString from './getQueryString/index.js'
import previewImage from './previewImage/index.js'
import parseFileStream from './parseFileStream/index.js'
import bankCardValidate from './bankCardValidate/index.js'
import uploadImg from './uploadImg/index.js'
import selectTimeList from './selectTimeList/index.js'
import richTextSplicing from './richTextSplicing/index.js'
import to from './to/index.js'

const $z = {
	toast,
	deepClone,
	throttle,
	previewFile,
	judgmentType,
	anchorPoint,
	getQueryString,
	previewImage,
	parseFileStream,
	bankCardValidate,
	uploadImg,
	selectTimeList,
	richTextSplicing,
	test,
	to,
}

const install = (Vue, app) => {
	uni.$z = $z
	Vue.prototype.$z = $z
}

export default {
	install
}
